<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>esapi.reference.default_security_configuration</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="esapi-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="esapi-module.html">Package&nbsp;esapi</a> ::
        <a href="esapi.reference-module.html">Package&nbsp;reference</a> ::
        Module&nbsp;default_security_configuration
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="esapi.reference.default_security_configuration-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="esapi.reference.default_security_configuration-module.html">Module esapi.reference.default_security_configuration</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment">#!/usr/bin/python</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"># -*- coding: utf-8 -*-</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-docstring">@license: OWASP Enterprise Security API (ESAPI)</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-docstring">     </tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-docstring">    This file is part of the Open Web Application Security Project (OWASP)</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-docstring">    Enterprise Security API (ESAPI) project. For details, please see</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-docstring">    U{http://www.owasp.org/index.php/ESAPI&lt;http://www.owasp.org/index.php/ESAPI&gt;}.</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-docstring">    The ESAPI is published by OWASP under the BSD license. You should read and </tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-docstring">    accept the LICENSE before you use, modify, and/or redistribute this software.</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-docstring">@summary: Reference implementation of the SecurityConfiguration interface.</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-docstring">@copyright: Copyright (c) 2009 - The OWASP Foundation</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-docstring">@author: Craig Younkins (craig.younkins@owasp.org)</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-comment"># Todo</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">pickle</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">re</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package esapi=esapi-module.html"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-0', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module esapi.core=esapi.core-module.html"><a title="esapi.core" class="py-name" href="#" onclick="return doclink('link-1', 'core', 'link-1');">core</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name" targets="Class esapi.core.ESAPI=esapi.core.ESAPI-class.html"><a title="esapi.core.ESAPI" class="py-name" href="#" onclick="return doclink('link-2', 'ESAPI', 'link-2');">ESAPI</a></tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-3" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-3', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Class Method esapi.core.ESAPI.security_configuration()=esapi.core.ESAPI-class.html#security_configuration,Module esapi.security_configuration=esapi.security_configuration-module.html"><a title="esapi.core.ESAPI.security_configuration
esapi.security_configuration" class="py-name" href="#" onclick="return doclink('link-4', 'security_configuration', 'link-4');">security_configuration</a></tt> <tt class="py-keyword">import</tt> <tt id="link-5" class="py-name" targets="Class esapi.security_configuration.SecurityConfiguration=esapi.security_configuration.SecurityConfiguration-class.html"><a title="esapi.security_configuration.SecurityConfiguration" class="py-name" href="#" onclick="return doclink('link-5', 'SecurityConfiguration', 'link-5');">SecurityConfiguration</a></tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-6" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-6', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Module esapi.translation=esapi.translation-module.html"><a title="esapi.translation" class="py-name" href="#" onclick="return doclink('link-7', 'translation', 'link-7');">translation</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">_</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-8" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-8', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Module esapi.exceptions=esapi.exceptions-module.html"><a title="esapi.exceptions" class="py-name" href="#" onclick="return doclink('link-9', 'exceptions', 'link-9');">exceptions</a></tt> <tt class="py-keyword">import</tt> <tt id="link-10" class="py-name" targets="Class esapi.exceptions.ConfigurationException=esapi.exceptions.ConfigurationException-class.html"><a title="esapi.exceptions.ConfigurationException" class="py-name" href="#" onclick="return doclink('link-10', 'ConfigurationException', 'link-10');">ConfigurationException</a></tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"><tt class="py-comment"># These will be modules set in load_configuration</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"><tt id="link-11" class="py-name" targets="Package esapi.conf=esapi.conf-module.html,Package esapi.test.conf=esapi.test.conf-module.html"><a title="esapi.conf
esapi.test.conf" class="py-name" href="#" onclick="return doclink('link-11', 'conf', 'link-11');">conf</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"><tt id="link-12" class="py-name" targets="Package esapi.conf.resources=esapi.conf.resources-module.html,Package esapi.test.conf.resources=esapi.test.conf.resources-module.html"><a title="esapi.conf.resources
esapi.test.conf.resources" class="py-name" href="#" onclick="return doclink('link-12', 'resources', 'link-12');">resources</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"><tt id="link-13" class="py-name" targets="Module esapi.conf.settings=esapi.conf.settings-module.html,Module esapi.test.conf.settings=esapi.test.conf.settings-module.html"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-13', 'settings', 'link-13');">settings</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"> </tt>
<a name="DefaultSecurityConfiguration"></a><div id="DefaultSecurityConfiguration-def"><a name="L35"></a><tt class="py-lineno"> 35</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration-toggle" onclick="return toggle('DefaultSecurityConfiguration');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html">DefaultSecurityConfiguration</a><tt class="py-op">(</tt><tt class="py-base-class">SecurityConfiguration</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="DefaultSecurityConfiguration-expanded"><a name="DefaultSecurityConfiguration.__init__"></a><div id="DefaultSecurityConfiguration.__init__-def"><a name="L36"></a><tt class="py-lineno"> 36</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.__init__-toggle" onclick="return toggle('DefaultSecurityConfiguration.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.__init__-expanded"><a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">        <tt class="py-docstring">"""Instantiates a new configuration"""</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt id="link-14" class="py-name"><a title="esapi.security_configuration.SecurityConfiguration" class="py-name" href="#" onclick="return doclink('link-14', 'SecurityConfiguration', 'link-5');">SecurityConfiguration</a></tt><tt class="py-op">.</tt><tt id="link-15" class="py-name" targets="Method esapi.access_reference_map.AccessReferenceMap.__init__()=esapi.access_reference_map.AccessReferenceMap-class.html#__init__,Method esapi.authenticator.Authenticator.__init__()=esapi.authenticator.Authenticator-class.html#__init__,Method esapi.codecs.codec.Codec.__init__()=esapi.codecs.codec.Codec-class.html#__init__,Method esapi.codecs.css.CSSCodec.__init__()=esapi.codecs.css.CSSCodec-class.html#__init__,Method esapi.codecs.html_entity.HTMLEntityCodec.__init__()=esapi.codecs.html_entity.HTMLEntityCodec-class.html#__init__,Method esapi.codecs.javascript.JavascriptCodec.__init__()=esapi.codecs.javascript.JavascriptCodec-class.html#__init__,Method esapi.codecs.ldap.LDAPCodec.__init__()=esapi.codecs.ldap.LDAPCodec-class.html#__init__,Method esapi.codecs.ldap_dn.LDAPDNCodec.__init__()=esapi.codecs.ldap_dn.LDAPDNCodec-class.html#__init__,Method esapi.codecs.mysql.MySQLCodec.__init__()=esapi.codecs.mysql.MySQLCodec-class.html#__init__,Method esapi.codecs.oracle.OracleCodec.__init__()=esapi.codecs.oracle.OracleCodec-class.html#__init__,Method esapi.codecs.percent.PercentCodec.__init__()=esapi.codecs.percent.PercentCodec-class.html#__init__,Method esapi.codecs.push_back_string.PushbackString.__init__()=esapi.codecs.push_back_string.PushbackString-class.html#__init__,Method esapi.codecs.unix.UnixCodec.__init__()=esapi.codecs.unix.UnixCodec-class.html#__init__,Method esapi.codecs.vbscript.VBScriptCodec.__init__()=esapi.codecs.vbscript.VBScriptCodec-class.html#__init__,Method esapi.codecs.windows.WindowsCodec.__init__()=esapi.codecs.windows.WindowsCodec-class.html#__init__,Method esapi.encoder.Encoder.__init__()=esapi.encoder.Encoder-class.html#__init__,Method esapi.encryptor.Encryptor.__init__()=esapi.encryptor.Encryptor-class.html#__init__,Method esapi.exceptions.AccessControlException.__init__()=esapi.exceptions.AccessControlException-class.html#__init__,Method esapi.exceptions.AuthenticationAccountsException.__init__()=esapi.exceptions.AuthenticationAccountsException-class.html#__init__,Method esapi.exceptions.AuthenticationCredentialsException.__init__()=esapi.exceptions.AuthenticationCredentialsException-class.html#__init__,Method esapi.exceptions.AuthenticationException.__init__()=esapi.exceptions.AuthenticationException-class.html#__init__,Method esapi.exceptions.AuthenticationHostException.__init__()=esapi.exceptions.AuthenticationHostException-class.html#__init__,Method esapi.exceptions.AuthenticationLoginException.__init__()=esapi.exceptions.AuthenticationLoginException-class.html#__init__,Method esapi.exceptions.AvailabilityException.__init__()=esapi.exceptions.AvailabilityException-class.html#__init__,Method esapi.exceptions.CertificateException.__init__()=esapi.exceptions.CertificateException-class.html#__init__,Method esapi.exceptions.ConfigurationException.__init__()=esapi.exceptions.ConfigurationException-class.html#__init__,Method esapi.exceptions.EncodingException.__init__()=esapi.exceptions.EncodingException-class.html#__init__,Method esapi.exceptions.EncryptionException.__init__()=esapi.exceptions.EncryptionException-class.html#__init__,Method esapi.exceptions.EnterpriseSecurityException.__init__()=esapi.exceptions.EnterpriseSecurityException-class.html#__init__,Method esapi.exceptions.ExecutorException.__init__()=esapi.exceptions.ExecutorException-class.html#__init__,Method esapi.exceptions.IntegrityException.__init__()=esapi.exceptions.IntegrityException-class.html#__init__,Method esapi.exceptions.IntrusionException.__init__()=esapi.exceptions.IntrusionException-class.html#__init__,Method esapi.exceptions.ValidationAvailabilityException.__init__()=esapi.exceptions.ValidationAvailabilityException-class.html#__init__,Method esapi.exceptions.ValidationException.__init__()=esapi.exceptions.ValidationException-class.html#__init__,Method esapi.exceptions.ValidationUploadException.__init__()=esapi.exceptions.ValidationUploadException-class.html#__init__,Method esapi.executor.Executor.__init__()=esapi.executor.Executor-class.html#__init__,Method esapi.http_utilities.HTTPUtilities.__init__()=esapi.http_utilities.HTTPUtilities-class.html#__init__,Method esapi.ihttp.IHttpRequest.__init__()=esapi.ihttp.IHttpRequest-class.html#__init__,Method esapi.ihttp.IHttpResponse.__init__()=esapi.ihttp.IHttpResponse-class.html#__init__,Method esapi.ihttp.ISession.__init__()=esapi.ihttp.ISession-class.html#__init__,Method esapi.log_factory.LogFactory.__init__()=esapi.log_factory.LogFactory-class.html#__init__,Method esapi.logger.Logger.EventType.__init__()=esapi.logger.Logger.EventType-class.html#__init__,Method esapi.logger.Logger.__init__()=esapi.logger.Logger-class.html#__init__,Method esapi.randomizer.Randomizer.__init__()=esapi.randomizer.Randomizer-class.html#__init__,Method esapi.reference.default_encoder.DefaultEncoder.__init__()=esapi.reference.default_encoder.DefaultEncoder-class.html#__init__,Method esapi.reference.default_encryptor.DefaultEncryptor.__init__()=esapi.reference.default_encryptor.DefaultEncryptor-class.html#__init__,Method esapi.reference.default_executor.DefaultExecutor.__init__()=esapi.reference.default_executor.DefaultExecutor-class.html#__init__,Method esapi.reference.default_http_utilities.DefaultHTTPUtilities.__init__()=esapi.reference.default_http_utilities.DefaultHTTPUtilities-class.html#__init__,Method esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.Event.__init__()=esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.Event-class.html#__init__,Method esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.__init__()=esapi.reference.default_intrusion_detector.DefaultIntrusionDetector-class.html#__init__,Method esapi.reference.default_randomizer.DefaultRandomizer.__init__()=esapi.reference.default_randomizer.DefaultRandomizer-class.html#__init__,Method esapi.reference.default_security_configuration.DefaultSecurityConfiguration.__init__()=esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#__init__,Method esapi.reference.default_user.DefaultUser.__init__()=esapi.reference.default_user.DefaultUser-class.html#__init__,Method esapi.reference.default_validator.DefaultValidator.__init__()=esapi.reference.default_validator.DefaultValidator-class.html#__init__,Method esapi.reference.file_based_access_controller.FileBasedAccessController.__init__()=esapi.reference.file_based_access_controller.FileBasedAccessController-class.html#__init__,Method esapi.reference.file_based_access_controller.Rule.__init__()=esapi.reference.file_based_access_controller.Rule-class.html#__init__,Method esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.__init__()=esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#__init__,Method esapi.reference.python_log_factory.PythonLogFactory.__init__()=esapi.reference.python_log_factory.PythonLogFactory-class.html#__init__,Method esapi.reference.random_access_reference_map.RandomAccessReferenceMap.__init__()=esapi.reference.random_access_reference_map.RandomAccessReferenceMap-class.html#__init__,Method esapi.reference.shelve_authenticator.ShelveAuthenticator.__init__()=esapi.reference.shelve_authenticator.ShelveAuthenticator-class.html#__init__,Method esapi.reference.user_credentials.UserCredentials.__init__()=esapi.reference.user_credentials.UserCredentials-class.html#__init__,Method esapi.reference.validation.base_validation_rule.BaseValidationRule.__init__()=esapi.reference.validation.base_validation_rule.BaseValidationRule-class.html#__init__,Method esapi.reference.validation.credit_card_validation_rule.CreditCardValidationRule.__init__()=esapi.reference.validation.credit_card_validation_rule.CreditCardValidationRule-class.html#__init__,Method esapi.reference.validation.date_validation_rule.DateValidationRule.__init__()=esapi.reference.validation.date_validation_rule.DateValidationRule-class.html#__init__,Method esapi.reference.validation.number_validation_rule.NumberValidationRule.__init__()=esapi.reference.validation.number_validation_rule.NumberValidationRule-class.html#__init__,Method esapi.reference.validation.string_validation_rule.StringValidationRule.__init__()=esapi.reference.validation.string_validation_rule.StringValidationRule-class.html#__init__,Method esapi.security_configuration.SecurityConfiguration.Threshold.__init__()=esapi.security_configuration.SecurityConfiguration.Threshold-class.html#__init__,Method esapi.security_configuration.SecurityConfiguration.__init__()=esapi.security_configuration.SecurityConfiguration-class.html#__init__,Method esapi.test.http.mock_http_request.MockHttpRequest.__init__()=esapi.test.http.mock_http_request.MockHttpRequest-class.html#__init__,Method esapi.test.http.mock_http_response.MockHttpResponse.__init__()=esapi.test.http.mock_http_response.MockHttpResponse-class.html#__init__,Method esapi.test.http.mock_session.MockSession.__init__()=esapi.test.http.mock_session.MockSession-class.html#__init__,Method esapi.test.test_access_controller.AccessControllerTest.__init__()=esapi.test.test_access_controller.AccessControllerTest-class.html#__init__,Method esapi.test.test_authenticator.ValidatorTest.__init__()=esapi.test.test_authenticator.ValidatorTest-class.html#__init__,Method esapi.test.test_encoder.EncoderTest.__init__()=esapi.test.test_encoder.EncoderTest-class.html#__init__,Method esapi.test.test_encryptor.EncryptorTest.__init__()=esapi.test.test_encryptor.EncryptorTest-class.html#__init__,Method esapi.test.test_executor.ExecutorTest.__init__()=esapi.test.test_executor.ExecutorTest-class.html#__init__,Method esapi.test.test_http_utilities.HTTPUtilitiesTest.__init__()=esapi.test.test_http_utilities.HTTPUtilitiesTest-class.html#__init__,Method esapi.test.test_intrusion_detector.IntrusionDetectorTest.__init__()=esapi.test.test_intrusion_detector.IntrusionDetectorTest-class.html#__init__,Method esapi.test.test_logger.LoggerTest.__init__()=esapi.test.test_logger.LoggerTest-class.html#__init__,Method esapi.test.test_random_access_map.ARMTest.__init__()=esapi.test.test_random_access_map.ARMTest-class.html#__init__,Method esapi.test.test_randomizer.RandomizerTest.__init__()=esapi.test.test_randomizer.RandomizerTest-class.html#__init__,Method esapi.test.test_user.UserTest.__init__()=esapi.test.test_user.UserTest-class.html#__init__,Method esapi.test.test_validator.ValidatorTest.__init__()=esapi.test.test_validator.ValidatorTest-class.html#__init__,Method esapi.user.AnonymousUser.__init__()=esapi.user.AnonymousUser-class.html#__init__,Method esapi.user.User.__init__()=esapi.user.User-class.html#__init__,Method esapi.validator.Validator.__init__()=esapi.validator.Validator-class.html#__init__"><a title="esapi.access_reference_map.AccessReferenceMap.__init__
esapi.authenticator.Authenticator.__init__
esapi.codecs.codec.Codec.__init__
esapi.codecs.css.CSSCodec.__init__
esapi.codecs.html_entity.HTMLEntityCodec.__init__
esapi.codecs.javascript.JavascriptCodec.__init__
esapi.codecs.ldap.LDAPCodec.__init__
esapi.codecs.ldap_dn.LDAPDNCodec.__init__
esapi.codecs.mysql.MySQLCodec.__init__
esapi.codecs.oracle.OracleCodec.__init__
esapi.codecs.percent.PercentCodec.__init__
esapi.codecs.push_back_string.PushbackString.__init__
esapi.codecs.unix.UnixCodec.__init__
esapi.codecs.vbscript.VBScriptCodec.__init__
esapi.codecs.windows.WindowsCodec.__init__
esapi.encoder.Encoder.__init__
esapi.encryptor.Encryptor.__init__
esapi.exceptions.AccessControlException.__init__
esapi.exceptions.AuthenticationAccountsException.__init__
esapi.exceptions.AuthenticationCredentialsException.__init__
esapi.exceptions.AuthenticationException.__init__
esapi.exceptions.AuthenticationHostException.__init__
esapi.exceptions.AuthenticationLoginException.__init__
esapi.exceptions.AvailabilityException.__init__
esapi.exceptions.CertificateException.__init__
esapi.exceptions.ConfigurationException.__init__
esapi.exceptions.EncodingException.__init__
esapi.exceptions.EncryptionException.__init__
esapi.exceptions.EnterpriseSecurityException.__init__
esapi.exceptions.ExecutorException.__init__
esapi.exceptions.IntegrityException.__init__
esapi.exceptions.IntrusionException.__init__
esapi.exceptions.ValidationAvailabilityException.__init__
esapi.exceptions.ValidationException.__init__
esapi.exceptions.ValidationUploadException.__init__
esapi.executor.Executor.__init__
esapi.http_utilities.HTTPUtilities.__init__
esapi.ihttp.IHttpRequest.__init__
esapi.ihttp.IHttpResponse.__init__
esapi.ihttp.ISession.__init__
esapi.log_factory.LogFactory.__init__
esapi.logger.Logger.EventType.__init__
esapi.logger.Logger.__init__
esapi.randomizer.Randomizer.__init__
esapi.reference.default_encoder.DefaultEncoder.__init__
esapi.reference.default_encryptor.DefaultEncryptor.__init__
esapi.reference.default_executor.DefaultExecutor.__init__
esapi.reference.default_http_utilities.DefaultHTTPUtilities.__init__
esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.Event.__init__
esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.__init__
esapi.reference.default_randomizer.DefaultRandomizer.__init__
esapi.reference.default_security_configuration.DefaultSecurityConfiguration.__init__
esapi.reference.default_user.DefaultUser.__init__
esapi.reference.default_validator.DefaultValidator.__init__
esapi.reference.file_based_access_controller.FileBasedAccessController.__init__
esapi.reference.file_based_access_controller.Rule.__init__
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.__init__
esapi.reference.python_log_factory.PythonLogFactory.__init__
esapi.reference.random_access_reference_map.RandomAccessReferenceMap.__init__
esapi.reference.shelve_authenticator.ShelveAuthenticator.__init__
esapi.reference.user_credentials.UserCredentials.__init__
esapi.reference.validation.base_validation_rule.BaseValidationRule.__init__
esapi.reference.validation.credit_card_validation_rule.CreditCardValidationRule.__init__
esapi.reference.validation.date_validation_rule.DateValidationRule.__init__
esapi.reference.validation.number_validation_rule.NumberValidationRule.__init__
esapi.reference.validation.string_validation_rule.StringValidationRule.__init__
esapi.security_configuration.SecurityConfiguration.Threshold.__init__
esapi.security_configuration.SecurityConfiguration.__init__
esapi.test.http.mock_http_request.MockHttpRequest.__init__
esapi.test.http.mock_http_response.MockHttpResponse.__init__
esapi.test.http.mock_session.MockSession.__init__
esapi.test.test_access_controller.AccessControllerTest.__init__
esapi.test.test_authenticator.ValidatorTest.__init__
esapi.test.test_encoder.EncoderTest.__init__
esapi.test.test_encryptor.EncryptorTest.__init__
esapi.test.test_executor.ExecutorTest.__init__
esapi.test.test_http_utilities.HTTPUtilitiesTest.__init__
esapi.test.test_intrusion_detector.IntrusionDetectorTest.__init__
esapi.test.test_logger.LoggerTest.__init__
esapi.test.test_random_access_map.ARMTest.__init__
esapi.test.test_randomizer.RandomizerTest.__init__
esapi.test.test_user.UserTest.__init__
esapi.test.test_validator.ValidatorTest.__init__
esapi.user.AnonymousUser.__init__
esapi.user.User.__init__
esapi.validator.Validator.__init__" class="py-name" href="#" onclick="return doclink('link-15', '__init__', 'link-15');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name" targets="Method esapi.reference.default_security_configuration.DefaultSecurityConfiguration.load_configuration()=esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#load_configuration"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration.load_configuration" class="py-name" href="#" onclick="return doclink('link-16', 'load_configuration', 'link-16');">load_configuration</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">                 </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource_dir</tt> <tt class="py-op">=</tt> <tt id="link-17" class="py-name"><a title="esapi.conf.resources
esapi.test.conf.resources" class="py-name" href="#" onclick="return doclink('link-17', 'resources', 'link-12');">resources</a></tt><tt class="py-op">.</tt><tt class="py-name">__path__</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
</div><a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">         </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">    <tt class="py-comment"># Helper</tt> </tt>
<a name="DefaultSecurityConfiguration.load_configuration"></a><div id="DefaultSecurityConfiguration.load_configuration-def"><a name="L44"></a><tt class="py-lineno"> 44</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.load_configuration-toggle" onclick="return toggle('DefaultSecurityConfiguration.load_configuration');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#load_configuration">load_configuration</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.load_configuration-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.load_configuration-expanded"><a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-docstring">"""Load configuration"""</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">         </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">        <tt class="py-comment"># Get the correct set of modules</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">        <tt class="py-keyword">global</tt> <tt id="link-18" class="py-name"><a title="esapi.conf
esapi.test.conf" class="py-name" href="#" onclick="return doclink('link-18', 'conf', 'link-11');">conf</a></tt><tt class="py-op">,</tt> <tt id="link-19" class="py-name"><a title="esapi.conf.resources
esapi.test.conf.resources" class="py-name" href="#" onclick="return doclink('link-19', 'resources', 'link-12');">resources</a></tt><tt class="py-op">,</tt> <tt id="link-20" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-20', 'settings', 'link-13');">settings</a></tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">            <tt class="py-comment"># If esapi.test.conf was already imported, we know we are running a unit</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">            <tt class="py-comment"># test, so we should load the testing configuration</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">             </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-string">'esapi.test.conf'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">modules</tt><tt class="py-op">:</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name" targets="Method esapi.reference.default_security_configuration.DefaultSecurityConfiguration.log_special()=esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#log_special"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration.log_special" class="py-name" href="#" onclick="return doclink('link-21', 'log_special', 'link-21');">log_special</a></tt><tt class="py-op">(</tt><tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">"WARNING - LOADING UNIT TEST CONFIGURATION! IF YOU ARE NOT RUNNING UNIT TESTS, SOMETHING IS VERY WRONG AND YOUR APP IS NOT SECURE!"</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt id="link-22" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-22', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-23" class="py-name" targets="Package esapi.test=esapi.test-module.html"><a title="esapi.test" class="py-name" href="#" onclick="return doclink('link-23', 'test', 'link-23');">test</a></tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="esapi.conf
esapi.test.conf" class="py-name" href="#" onclick="return doclink('link-24', 'conf', 'link-11');">conf</a></tt> <tt class="py-keyword">as</tt> <tt id="link-25" class="py-name"><a title="esapi.conf
esapi.test.conf" class="py-name" href="#" onclick="return doclink('link-25', 'conf', 'link-11');">conf</a></tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt id="link-26" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-26', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="esapi.test" class="py-name" href="#" onclick="return doclink('link-27', 'test', 'link-23');">test</a></tt><tt class="py-op">.</tt><tt id="link-28" class="py-name"><a title="esapi.conf
esapi.test.conf" class="py-name" href="#" onclick="return doclink('link-28', 'conf', 'link-11');">conf</a></tt><tt class="py-op">.</tt><tt id="link-29" class="py-name"><a title="esapi.conf.resources
esapi.test.conf.resources" class="py-name" href="#" onclick="return doclink('link-29', 'resources', 'link-12');">resources</a></tt> <tt class="py-keyword">as</tt> <tt id="link-30" class="py-name"><a title="esapi.conf.resources
esapi.test.conf.resources" class="py-name" href="#" onclick="return doclink('link-30', 'resources', 'link-12');">resources</a></tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt id="link-31" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-31', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="esapi.test" class="py-name" href="#" onclick="return doclink('link-32', 'test', 'link-23');">test</a></tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="esapi.conf
esapi.test.conf" class="py-name" href="#" onclick="return doclink('link-33', 'conf', 'link-11');">conf</a></tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-34', 'settings', 'link-13');">settings</a></tt> <tt class="py-keyword">as</tt> <tt id="link-35" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-35', 'settings', 'link-13');">settings</a></tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt id="link-36" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-36', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-37" class="py-name"><a title="esapi.conf
esapi.test.conf" class="py-name" href="#" onclick="return doclink('link-37', 'conf', 'link-11');">conf</a></tt> <tt class="py-keyword">as</tt> <tt id="link-38" class="py-name"><a title="esapi.conf
esapi.test.conf" class="py-name" href="#" onclick="return doclink('link-38', 'conf', 'link-11');">conf</a></tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt id="link-39" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-39', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="esapi.conf
esapi.test.conf" class="py-name" href="#" onclick="return doclink('link-40', 'conf', 'link-11');">conf</a></tt><tt class="py-op">.</tt><tt id="link-41" class="py-name"><a title="esapi.conf.resources
esapi.test.conf.resources" class="py-name" href="#" onclick="return doclink('link-41', 'resources', 'link-12');">resources</a></tt> <tt class="py-keyword">as</tt> <tt id="link-42" class="py-name"><a title="esapi.conf.resources
esapi.test.conf.resources" class="py-name" href="#" onclick="return doclink('link-42', 'resources', 'link-12');">resources</a></tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt id="link-43" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-43', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-44" class="py-name"><a title="esapi.conf
esapi.test.conf" class="py-name" href="#" onclick="return doclink('link-44', 'conf', 'link-11');">conf</a></tt><tt class="py-op">.</tt><tt id="link-45" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-45', 'settings', 'link-13');">settings</a></tt> <tt class="py-keyword">as</tt> <tt id="link-46" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-46', 'settings', 'link-13');">settings</a></tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">               </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">ImportError</tt><tt class="py-op">:</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">ImportError</tt><tt class="py-op">,</tt> <tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">"Unable to import settings file - Check settings.py"</tt><tt class="py-op">)</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">             </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration.log_special" class="py-name" href="#" onclick="return doclink('link-47', 'log_special', 'link-21');">log_special</a></tt><tt class="py-op">(</tt><tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">"Loaded ESAPI properties"</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">         </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-48" class="py-name"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration.log_special" class="py-name" href="#" onclick="return doclink('link-48', 'log_special', 'link-21');">log_special</a></tt><tt class="py-op">(</tt><tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">" ======Master Configuration======"</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">         </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">option</tt> <tt class="py-keyword">in</tt> <tt class="py-name">dir</tt><tt class="py-op">(</tt><tt id="link-49" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-49', 'settings', 'link-13');">settings</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-string">"Master"</tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt class="py-name">option</tt> <tt class="py-keyword">and</tt> <tt class="py-name">option</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-string">"_"</tt><tt class="py-op">:</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration.log_special" class="py-name" href="#" onclick="return doclink('link-50', 'log_special', 'link-21');">log_special</a></tt><tt class="py-op">(</tt><tt class="py-string">"  |   %(key)s = %(value)s"</tt> <tt class="py-op">%</tt> <tt class="py-op">{</tt><tt class="py-string">"key"</tt><tt class="py-op">:</tt> <tt class="py-name">option</tt><tt class="py-op">,</tt> <tt class="py-string">"value"</tt><tt class="py-op">:</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-51" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-51', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">option</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
</div><a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">     </tt>
<a name="DefaultSecurityConfiguration.log_special"></a><div id="DefaultSecurityConfiguration.log_special-def"><a name="L74"></a><tt class="py-lineno"> 74</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.log_special-toggle" onclick="return toggle('DefaultSecurityConfiguration.log_special');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#log_special">log_special</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.log_special-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.log_special-expanded"><a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-name">text</tt> </tt>
</div><a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">            </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">    <tt class="py-comment"># General</tt> </tt>
<a name="DefaultSecurityConfiguration.get_application_name"></a><div id="DefaultSecurityConfiguration.get_application_name-def"><a name="L78"></a><tt class="py-lineno"> 78</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_application_name-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_application_name');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_application_name">get_application_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_application_name-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_application_name-expanded"><a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-52" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-52', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-53" class="py-name" targets="Variable esapi.conf.settings.General_ApplicationName=esapi.conf.settings-module.html#General_ApplicationName,Variable esapi.test.conf.settings.General_ApplicationName=esapi.test.conf.settings-module.html#General_ApplicationName"><a title="esapi.conf.settings.General_ApplicationName
esapi.test.conf.settings.General_ApplicationName" class="py-name" href="#" onclick="return doclink('link-53', 'General_ApplicationName', 'link-53');">General_ApplicationName</a></tt> </tt>
</div><a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_class_for_interface"></a><div id="DefaultSecurityConfiguration.get_class_for_interface-def"><a name="L81"></a><tt class="py-lineno"> 81</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_class_for_interface-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_class_for_interface');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_class_for_interface">get_class_for_interface</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">interface</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_class_for_interface-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_class_for_interface-expanded"><a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt class="py-name">interface</tt> <tt class="py-op">=</tt> <tt class="py-name">interface</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">        <tt class="py-name">prop</tt> <tt class="py-op">=</tt> <tt class="py-string">"ESAPI_%s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">interface</tt><tt class="py-op">,</tt><tt class="py-op">)</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">         </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">            <tt class="py-name">fqn</tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt id="link-54" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-54', 'settings', 'link-13');">settings</a></tt><tt class="py-op">,</tt> <tt class="py-name">prop</tt><tt class="py-op">)</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">,</tt> <tt class="py-name">extra</tt><tt class="py-op">:</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-55" class="py-name"><a title="esapi.exceptions.ConfigurationException" class="py-name" href="#" onclick="return doclink('link-55', 'ConfigurationException', 'link-10');">ConfigurationException</a></tt><tt class="py-op">(</tt>  </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">                <tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">'There is an error in the application configuration. See the security log for more details.'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt>  </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">                <tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">"Class for this interface not specified in settings: %(interface)s"</tt><tt class="py-op">)</tt> <tt class="py-op">%</tt>  </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">                <tt class="py-op">{</tt><tt class="py-string">'interface'</tt> <tt class="py-op">:</tt> <tt class="py-name">interface</tt><tt class="py-op">}</tt><tt class="py-op">,</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">                <tt class="py-name">extra</tt> <tt class="py-op">)</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">         </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">            <tt class="py-name">dot</tt> <tt class="py-op">=</tt> <tt class="py-name">fqn</tt><tt class="py-op">.</tt><tt class="py-name">rindex</tt><tt class="py-op">(</tt><tt class="py-string">'.'</tt><tt class="py-op">)</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">            <tt class="py-name">modulename</tt> <tt class="py-op">=</tt> <tt class="py-name">fqn</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-name">dot</tt><tt class="py-op">]</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">            <tt class="py-name">classname</tt> <tt class="py-op">=</tt> <tt class="py-name">fqn</tt><tt class="py-op">[</tt><tt class="py-name">dot</tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">ValueError</tt><tt class="py-op">,</tt> <tt class="py-name">extra</tt><tt class="py-op">:</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-56" class="py-name"><a title="esapi.exceptions.ConfigurationException" class="py-name" href="#" onclick="return doclink('link-56', 'ConfigurationException', 'link-10');">ConfigurationException</a></tt><tt class="py-op">(</tt>  </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">                <tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">'There is an error in the application configuration. See the security log for more details.'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt>  </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">                <tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">"Fully-qualified name is malformed: %(name)s"</tt><tt class="py-op">)</tt> <tt class="py-op">%</tt>  </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">                <tt class="py-op">{</tt><tt class="py-string">'name'</tt> <tt class="py-op">:</tt> <tt class="py-name">fqn</tt><tt class="py-op">}</tt><tt class="py-op">,</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">                <tt class="py-name">extra</tt> <tt class="py-op">)</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">         </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">            <tt class="py-name">__import__</tt><tt class="py-op">(</tt><tt class="py-name">modulename</tt><tt class="py-op">)</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">            <tt class="py-name">module</tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">modules</tt><tt class="py-op">[</tt><tt class="py-name">modulename</tt><tt class="py-op">]</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">module</tt><tt class="py-op">,</tt> <tt class="py-name">classname</tt><tt class="py-op">)</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-op">(</tt><tt class="py-name">ImportError</tt><tt class="py-op">,</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">extra</tt><tt class="py-op">:</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-57" class="py-name"><a title="esapi.exceptions.ConfigurationException" class="py-name" href="#" onclick="return doclink('link-57', 'ConfigurationException', 'link-10');">ConfigurationException</a></tt><tt class="py-op">(</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">                <tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">'There is an error in the application configuration. See the security log for more details.'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">                <tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">'Error getting class %(class)s from module %(module)s'</tt><tt class="py-op">)</tt> <tt class="py-op">%</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">                <tt class="py-op">{</tt><tt class="py-string">'class'</tt> <tt class="py-op">:</tt> <tt class="py-name">classname</tt><tt class="py-op">,</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">                 <tt class="py-string">'module'</tt> <tt class="py-op">:</tt> <tt class="py-name">modulename</tt><tt class="py-op">,</tt><tt class="py-op">}</tt><tt class="py-op">,</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">                 <tt class="py-name">extra</tt> <tt class="py-op">)</tt> </tt>
</div><a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">                  </tt>
<a name="DefaultSecurityConfiguration.set_resource_directory"></a><div id="DefaultSecurityConfiguration.set_resource_directory-def"><a name="L117"></a><tt class="py-lineno">117</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.set_resource_directory-toggle" onclick="return toggle('DefaultSecurityConfiguration.set_resource_directory');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#set_resource_directory">set_resource_directory</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">directory</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.set_resource_directory-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.set_resource_directory-expanded"><a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource_dir</tt> <tt class="py-op">=</tt> <tt class="py-name">directory</tt> </tt>
</div><a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">     </tt>
<a name="DefaultSecurityConfiguration.get_resource_file"></a><div id="DefaultSecurityConfiguration.get_resource_file-def"><a name="L120"></a><tt class="py-lineno">120</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_resource_file-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_resource_file');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_resource_file">get_resource_file</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">filename</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_resource_file-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_resource_file-expanded"><a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource_dir</tt> <tt class="py-op">+</tt> <tt class="py-string">"/"</tt> <tt class="py-op">+</tt> <tt class="py-name">filename</tt> </tt>
</div><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line"> </tt>
<a name="DefaultSecurityConfiguration.get_character_encoding"></a><div id="DefaultSecurityConfiguration.get_character_encoding-def"><a name="L123"></a><tt class="py-lineno">123</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_character_encoding-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_character_encoding');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_character_encoding">get_character_encoding</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_character_encoding-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_character_encoding-expanded"><a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-58" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-58', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt class="py-name">General_CharacterEncoding</tt> </tt>
</div><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">     </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">    <tt class="py-comment"># Authenticator</tt> </tt>
<a name="DefaultSecurityConfiguration.get_max_old_password_hashes"></a><div id="DefaultSecurityConfiguration.get_max_old_password_hashes-def"><a name="L127"></a><tt class="py-lineno">127</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_max_old_password_hashes-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_max_old_password_hashes');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_max_old_password_hashes">get_max_old_password_hashes</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_max_old_password_hashes-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_max_old_password_hashes-expanded"><a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-59" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-59', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-60" class="py-name" targets="Variable esapi.conf.settings.Authenticator_MaxOldPasswordHashes=esapi.conf.settings-module.html#Authenticator_MaxOldPasswordHashes,Variable esapi.test.conf.settings.Authenticator_MaxOldPasswordHashes=esapi.test.conf.settings-module.html#Authenticator_MaxOldPasswordHashes"><a title="esapi.conf.settings.Authenticator_MaxOldPasswordHashes
esapi.test.conf.settings.Authenticator_MaxOldPasswordHashes" class="py-name" href="#" onclick="return doclink('link-60', 'Authenticator_MaxOldPasswordHashes', 'link-60');">Authenticator_MaxOldPasswordHashes</a></tt> </tt>
</div><a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_password_parameter_name"></a><div id="DefaultSecurityConfiguration.get_password_parameter_name-def"><a name="L130"></a><tt class="py-lineno">130</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_password_parameter_name-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_password_parameter_name');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_password_parameter_name">get_password_parameter_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_password_parameter_name-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_password_parameter_name-expanded"><a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-61" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-61', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-62" class="py-name" targets="Variable esapi.conf.settings.Authenticator_PasswordParameterName=esapi.conf.settings-module.html#Authenticator_PasswordParameterName,Variable esapi.test.conf.settings.Authenticator_PasswordParameterName=esapi.test.conf.settings-module.html#Authenticator_PasswordParameterName"><a title="esapi.conf.settings.Authenticator_PasswordParameterName
esapi.test.conf.settings.Authenticator_PasswordParameterName" class="py-name" href="#" onclick="return doclink('link-62', 'Authenticator_PasswordParameterName', 'link-62');">Authenticator_PasswordParameterName</a></tt> </tt>
</div><a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"> </tt>
<a name="DefaultSecurityConfiguration.get_username_parameter_name"></a><div id="DefaultSecurityConfiguration.get_username_parameter_name-def"><a name="L133"></a><tt class="py-lineno">133</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_username_parameter_name-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_username_parameter_name');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_username_parameter_name">get_username_parameter_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_username_parameter_name-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_username_parameter_name-expanded"><a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-63" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-63', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-64" class="py-name" targets="Variable esapi.conf.settings.Authenticator_UsernameParameterName=esapi.conf.settings-module.html#Authenticator_UsernameParameterName,Variable esapi.test.conf.settings.Authenticator_UsernameParameterName=esapi.test.conf.settings-module.html#Authenticator_UsernameParameterName"><a title="esapi.conf.settings.Authenticator_UsernameParameterName
esapi.test.conf.settings.Authenticator_UsernameParameterName" class="py-name" href="#" onclick="return doclink('link-64', 'Authenticator_UsernameParameterName', 'link-64');">Authenticator_UsernameParameterName</a></tt> </tt>
</div><a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_remember_token_duration"></a><div id="DefaultSecurityConfiguration.get_remember_token_duration-def"><a name="L136"></a><tt class="py-lineno">136</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_remember_token_duration-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_remember_token_duration');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_remember_token_duration">get_remember_token_duration</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_remember_token_duration-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_remember_token_duration-expanded"><a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-65" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-65', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-66" class="py-name" targets="Variable esapi.conf.settings.Authenticator_RememberTokenDuration=esapi.conf.settings-module.html#Authenticator_RememberTokenDuration,Variable esapi.test.conf.settings.Authenticator_RememberTokenDuration=esapi.test.conf.settings-module.html#Authenticator_RememberTokenDuration"><a title="esapi.conf.settings.Authenticator_RememberTokenDuration
esapi.test.conf.settings.Authenticator_RememberTokenDuration" class="py-name" href="#" onclick="return doclink('link-66', 'Authenticator_RememberTokenDuration', 'link-66');">Authenticator_RememberTokenDuration</a></tt> </tt>
</div><a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line"> </tt>
<a name="DefaultSecurityConfiguration.get_session_idle_timeout_length"></a><div id="DefaultSecurityConfiguration.get_session_idle_timeout_length-def"><a name="L139"></a><tt class="py-lineno">139</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_session_idle_timeout_length-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_session_idle_timeout_length');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_session_idle_timeout_length">get_session_idle_timeout_length</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_session_idle_timeout_length-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_session_idle_timeout_length-expanded"><a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-67" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-67', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-68" class="py-name" targets="Variable esapi.conf.settings.Authenticator_IdleTimeoutDuration=esapi.conf.settings-module.html#Authenticator_IdleTimeoutDuration,Variable esapi.test.conf.settings.Authenticator_IdleTimeoutDuration=esapi.test.conf.settings-module.html#Authenticator_IdleTimeoutDuration"><a title="esapi.conf.settings.Authenticator_IdleTimeoutDuration
esapi.test.conf.settings.Authenticator_IdleTimeoutDuration" class="py-name" href="#" onclick="return doclink('link-68', 'Authenticator_IdleTimeoutDuration', 'link-68');">Authenticator_IdleTimeoutDuration</a></tt> </tt>
</div><a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line"> </tt>
<a name="DefaultSecurityConfiguration.get_session_absolute_timeout_length"></a><div id="DefaultSecurityConfiguration.get_session_absolute_timeout_length-def"><a name="L142"></a><tt class="py-lineno">142</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_session_absolute_timeout_length-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_session_absolute_timeout_length');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_session_absolute_timeout_length">get_session_absolute_timeout_length</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_session_absolute_timeout_length-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_session_absolute_timeout_length-expanded"><a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-69" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-69', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-70" class="py-name" targets="Variable esapi.conf.settings.Authenticator_AbsoluteTimeoutDuration=esapi.conf.settings-module.html#Authenticator_AbsoluteTimeoutDuration,Variable esapi.test.conf.settings.Authenticator_AbsoluteTimeoutDuration=esapi.test.conf.settings-module.html#Authenticator_AbsoluteTimeoutDuration"><a title="esapi.conf.settings.Authenticator_AbsoluteTimeoutDuration
esapi.test.conf.settings.Authenticator_AbsoluteTimeoutDuration" class="py-name" href="#" onclick="return doclink('link-70', 'Authenticator_AbsoluteTimeoutDuration', 'link-70');">Authenticator_AbsoluteTimeoutDuration</a></tt> </tt>
</div><a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_allowed_login_attempts"></a><div id="DefaultSecurityConfiguration.get_allowed_login_attempts-def"><a name="L145"></a><tt class="py-lineno">145</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_allowed_login_attempts-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_allowed_login_attempts');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_allowed_login_attempts">get_allowed_login_attempts</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_allowed_login_attempts-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_allowed_login_attempts-expanded"><a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-71" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-71', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-72" class="py-name" targets="Variable esapi.conf.settings.Authenticator_AllowedLoginAttempts=esapi.conf.settings-module.html#Authenticator_AllowedLoginAttempts,Variable esapi.test.conf.settings.Authenticator_AllowedLoginAttempts=esapi.test.conf.settings-module.html#Authenticator_AllowedLoginAttempts"><a title="esapi.conf.settings.Authenticator_AllowedLoginAttempts
esapi.test.conf.settings.Authenticator_AllowedLoginAttempts" class="py-name" href="#" onclick="return doclink('link-72', 'Authenticator_AllowedLoginAttempts', 'link-72');">Authenticator_AllowedLoginAttempts</a></tt> </tt>
</div><a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">         </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">    <tt class="py-comment"># Encryption</tt> </tt>
<a name="DefaultSecurityConfiguration.get_encryption_keys_location"></a><div id="DefaultSecurityConfiguration.get_encryption_keys_location-def"><a name="L149"></a><tt class="py-lineno">149</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_encryption_keys_location-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_encryption_keys_location');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_encryption_keys_location">get_encryption_keys_location</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_encryption_keys_location-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_encryption_keys_location-expanded"><a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-73" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-73', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-74" class="py-name" targets="Variable esapi.conf.settings.Encryptor_KeysLocation=esapi.conf.settings-module.html#Encryptor_KeysLocation,Variable esapi.test.conf.settings.Encryptor_KeysLocation=esapi.test.conf.settings-module.html#Encryptor_KeysLocation"><a title="esapi.conf.settings.Encryptor_KeysLocation
esapi.test.conf.settings.Encryptor_KeysLocation" class="py-name" href="#" onclick="return doclink('link-74', 'Encryptor_KeysLocation', 'link-74');">Encryptor_KeysLocation</a></tt> </tt>
</div><a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_encryption_algorithm"></a><div id="DefaultSecurityConfiguration.get_encryption_algorithm-def"><a name="L152"></a><tt class="py-lineno">152</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_encryption_algorithm-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_encryption_algorithm');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_encryption_algorithm">get_encryption_algorithm</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_encryption_algorithm-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_encryption_algorithm-expanded"><a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-75" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-75', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-76" class="py-name" targets="Variable esapi.conf.settings.Encryptor_EncryptionAlgorithm=esapi.conf.settings-module.html#Encryptor_EncryptionAlgorithm,Variable esapi.test.conf.settings.Encryptor_EncryptionAlgorithm=esapi.test.conf.settings-module.html#Encryptor_EncryptionAlgorithm"><a title="esapi.conf.settings.Encryptor_EncryptionAlgorithm
esapi.test.conf.settings.Encryptor_EncryptionAlgorithm" class="py-name" href="#" onclick="return doclink('link-76', 'Encryptor_EncryptionAlgorithm', 'link-76');">Encryptor_EncryptionAlgorithm</a></tt> </tt>
</div><a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line"> </tt>
<a name="DefaultSecurityConfiguration.get_encryption_key_length"></a><div id="DefaultSecurityConfiguration.get_encryption_key_length-def"><a name="L155"></a><tt class="py-lineno">155</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_encryption_key_length-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_encryption_key_length');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_encryption_key_length">get_encryption_key_length</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_encryption_key_length-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_encryption_key_length-expanded"><a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-77" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-77', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-78" class="py-name" targets="Variable esapi.conf.settings.Encryptor_EncryptionKeyLength=esapi.conf.settings-module.html#Encryptor_EncryptionKeyLength,Variable esapi.test.conf.settings.Encryptor_EncryptionKeyLength=esapi.test.conf.settings-module.html#Encryptor_EncryptionKeyLength"><a title="esapi.conf.settings.Encryptor_EncryptionKeyLength
esapi.test.conf.settings.Encryptor_EncryptionKeyLength" class="py-name" href="#" onclick="return doclink('link-78', 'Encryptor_EncryptionKeyLength', 'link-78');">Encryptor_EncryptionKeyLength</a></tt> </tt>
</div><a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_digital_signature_algorithm"></a><div id="DefaultSecurityConfiguration.get_digital_signature_algorithm-def"><a name="L158"></a><tt class="py-lineno">158</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_digital_signature_algorithm-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_digital_signature_algorithm');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_digital_signature_algorithm">get_digital_signature_algorithm</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_digital_signature_algorithm-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_digital_signature_algorithm-expanded"><a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-79" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-79', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-80" class="py-name" targets="Variable esapi.conf.settings.Encryptor_DigitalSignatureAlgorithm=esapi.conf.settings-module.html#Encryptor_DigitalSignatureAlgorithm,Variable esapi.test.conf.settings.Encryptor_DigitalSignatureAlgorithm=esapi.test.conf.settings-module.html#Encryptor_DigitalSignatureAlgorithm"><a title="esapi.conf.settings.Encryptor_DigitalSignatureAlgorithm
esapi.test.conf.settings.Encryptor_DigitalSignatureAlgorithm" class="py-name" href="#" onclick="return doclink('link-80', 'Encryptor_DigitalSignatureAlgorithm', 'link-80');">Encryptor_DigitalSignatureAlgorithm</a></tt> </tt>
</div><a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line"> </tt>
<a name="DefaultSecurityConfiguration.get_digital_signature_key_length"></a><div id="DefaultSecurityConfiguration.get_digital_signature_key_length-def"><a name="L161"></a><tt class="py-lineno">161</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_digital_signature_key_length-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_digital_signature_key_length');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_digital_signature_key_length">get_digital_signature_key_length</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_digital_signature_key_length-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_digital_signature_key_length-expanded"><a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-81" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-81', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-82" class="py-name" targets="Variable esapi.conf.settings.Encryptor_DigitalSignatureKeyLength=esapi.conf.settings-module.html#Encryptor_DigitalSignatureKeyLength,Variable esapi.test.conf.settings.Encryptor_DigitalSignatureKeyLength=esapi.test.conf.settings-module.html#Encryptor_DigitalSignatureKeyLength"><a title="esapi.conf.settings.Encryptor_DigitalSignatureKeyLength
esapi.test.conf.settings.Encryptor_DigitalSignatureKeyLength" class="py-name" href="#" onclick="return doclink('link-82', 'Encryptor_DigitalSignatureKeyLength', 'link-82');">Encryptor_DigitalSignatureKeyLength</a></tt> </tt>
</div><a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">     </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">    <tt class="py-comment"># Executor</tt> </tt>
<a name="DefaultSecurityConfiguration.get_working_directory"></a><div id="DefaultSecurityConfiguration.get_working_directory-def"><a name="L165"></a><tt class="py-lineno">165</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_working_directory-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_working_directory');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_working_directory">get_working_directory</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_working_directory-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_working_directory-expanded"><a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-83" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-83', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-84" class="py-name" targets="Variable esapi.conf.settings.Executor_WorkingDirectory=esapi.conf.settings-module.html#Executor_WorkingDirectory,Variable esapi.test.conf.settings.Executor_WorkingDirectory=esapi.test.conf.settings-module.html#Executor_WorkingDirectory"><a title="esapi.conf.settings.Executor_WorkingDirectory
esapi.test.conf.settings.Executor_WorkingDirectory" class="py-name" href="#" onclick="return doclink('link-84', 'Executor_WorkingDirectory', 'link-84');">Executor_WorkingDirectory</a></tt> </tt>
</div><a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_allowed_executables"></a><div id="DefaultSecurityConfiguration.get_allowed_executables-def"><a name="L168"></a><tt class="py-lineno">168</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_allowed_executables-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_allowed_executables');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_allowed_executables">get_allowed_executables</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_allowed_executables-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_allowed_executables-expanded"><a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-85" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-85', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-86" class="py-name" targets="Variable esapi.conf.settings.Executor_AllowedExecutables=esapi.conf.settings-module.html#Executor_AllowedExecutables,Variable esapi.test.conf.settings.Executor_AllowedExecutables=esapi.test.conf.settings-module.html#Executor_AllowedExecutables"><a title="esapi.conf.settings.Executor_AllowedExecutables
esapi.test.conf.settings.Executor_AllowedExecutables" class="py-name" href="#" onclick="return doclink('link-86', 'Executor_AllowedExecutables', 'link-86');">Executor_AllowedExecutables</a></tt> </tt>
</div><a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_max_running_time"></a><div id="DefaultSecurityConfiguration.get_max_running_time-def"><a name="L171"></a><tt class="py-lineno">171</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_max_running_time-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_max_running_time');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_max_running_time">get_max_running_time</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_max_running_time-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_max_running_time-expanded"><a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-87" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-87', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-88" class="py-name" targets="Variable esapi.conf.settings.Executor_MaxRunningTime=esapi.conf.settings-module.html#Executor_MaxRunningTime,Variable esapi.test.conf.settings.Executor_MaxRunningTime=esapi.test.conf.settings-module.html#Executor_MaxRunningTime"><a title="esapi.conf.settings.Executor_MaxRunningTime
esapi.test.conf.settings.Executor_MaxRunningTime" class="py-name" href="#" onclick="return doclink('link-88', 'Executor_MaxRunningTime', 'link-88');">Executor_MaxRunningTime</a></tt> </tt>
</div><a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">     </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">    <tt class="py-comment"># Hashing</tt> </tt>
<a name="DefaultSecurityConfiguration.get_master_salt"></a><div id="DefaultSecurityConfiguration.get_master_salt-def"><a name="L175"></a><tt class="py-lineno">175</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_master_salt-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_master_salt');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_master_salt">get_master_salt</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_master_salt-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_master_salt-expanded"><a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-89" class="py-name"><a title="esapi.core.ESAPI" class="py-name" href="#" onclick="return doclink('link-89', 'ESAPI', 'link-2');">ESAPI</a></tt><tt class="py-op">.</tt><tt id="link-90" class="py-name" targets="Class Method esapi.core.ESAPI.encoder()=esapi.core.ESAPI-class.html#encoder,Module esapi.encoder=esapi.encoder-module.html"><a title="esapi.core.ESAPI.encoder
esapi.encoder" class="py-name" href="#" onclick="return doclink('link-90', 'encoder', 'link-90');">encoder</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-91" class="py-name" targets="Method esapi.encoder.Encoder.decode_from_base64()=esapi.encoder.Encoder-class.html#decode_from_base64,Method esapi.reference.default_encoder.DefaultEncoder.decode_from_base64()=esapi.reference.default_encoder.DefaultEncoder-class.html#decode_from_base64"><a title="esapi.encoder.Encoder.decode_from_base64
esapi.reference.default_encoder.DefaultEncoder.decode_from_base64" class="py-name" href="#" onclick="return doclink('link-91', 'decode_from_base64', 'link-91');">decode_from_base64</a></tt><tt class="py-op">(</tt><tt id="link-92" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-92', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-93" class="py-name" targets="Variable esapi.conf.settings.Encryptor_MasterSalt=esapi.conf.settings-module.html#Encryptor_MasterSalt,Variable esapi.test.conf.settings.Encryptor_MasterSalt=esapi.test.conf.settings-module.html#Encryptor_MasterSalt"><a title="esapi.conf.settings.Encryptor_MasterSalt
esapi.test.conf.settings.Encryptor_MasterSalt" class="py-name" href="#" onclick="return doclink('link-93', 'Encryptor_MasterSalt', 'link-93');">Encryptor_MasterSalt</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line"> </tt>
<a name="DefaultSecurityConfiguration.get_hash_algorithm"></a><div id="DefaultSecurityConfiguration.get_hash_algorithm-def"><a name="L178"></a><tt class="py-lineno">178</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_hash_algorithm-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_hash_algorithm');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_hash_algorithm">get_hash_algorithm</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_hash_algorithm-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_hash_algorithm-expanded"><a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-94" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-94', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-95" class="py-name" targets="Variable esapi.conf.settings.Encryptor_HashAlgorithm=esapi.conf.settings-module.html#Encryptor_HashAlgorithm,Variable esapi.test.conf.settings.Encryptor_HashAlgorithm=esapi.test.conf.settings-module.html#Encryptor_HashAlgorithm"><a title="esapi.conf.settings.Encryptor_HashAlgorithm
esapi.test.conf.settings.Encryptor_HashAlgorithm" class="py-name" href="#" onclick="return doclink('link-95', 'Encryptor_HashAlgorithm', 'link-95');">Encryptor_HashAlgorithm</a></tt> </tt>
</div><a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line"> </tt>
<a name="DefaultSecurityConfiguration.get_hash_iterations"></a><div id="DefaultSecurityConfiguration.get_hash_iterations-def"><a name="L181"></a><tt class="py-lineno">181</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_hash_iterations-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_hash_iterations');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_hash_iterations">get_hash_iterations</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_hash_iterations-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_hash_iterations-expanded"><a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-96" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-96', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-97" class="py-name" targets="Variable esapi.conf.settings.Encryptor_HashIterations=esapi.conf.settings-module.html#Encryptor_HashIterations,Variable esapi.test.conf.settings.Encryptor_HashIterations=esapi.test.conf.settings-module.html#Encryptor_HashIterations"><a title="esapi.conf.settings.Encryptor_HashIterations
esapi.test.conf.settings.Encryptor_HashIterations" class="py-name" href="#" onclick="return doclink('link-97', 'Encryptor_HashIterations', 'link-97');">Encryptor_HashIterations</a></tt> </tt>
</div><a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">         </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">    <tt class="py-comment"># HttpUtilities</tt> </tt>
<a name="DefaultSecurityConfiguration.get_force_http_only_cookies"></a><div id="DefaultSecurityConfiguration.get_force_http_only_cookies-def"><a name="L185"></a><tt class="py-lineno">185</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_force_http_only_cookies-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_force_http_only_cookies');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_force_http_only_cookies">get_force_http_only_cookies</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_force_http_only_cookies-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_force_http_only_cookies-expanded"><a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-98" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-98', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-99" class="py-name" targets="Variable esapi.conf.settings.HttpUtilities_ForceHttpOnlyCookies=esapi.conf.settings-module.html#HttpUtilities_ForceHttpOnlyCookies,Variable esapi.test.conf.settings.HttpUtilities_ForceHttpOnlyCookies=esapi.test.conf.settings-module.html#HttpUtilities_ForceHttpOnlyCookies"><a title="esapi.conf.settings.HttpUtilities_ForceHttpOnlyCookies
esapi.test.conf.settings.HttpUtilities_ForceHttpOnlyCookies" class="py-name" href="#" onclick="return doclink('link-99', 'HttpUtilities_ForceHttpOnlyCookies', 'link-99');">HttpUtilities_ForceHttpOnlyCookies</a></tt> </tt>
</div><a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_force_secure_cookies"></a><div id="DefaultSecurityConfiguration.get_force_secure_cookies-def"><a name="L188"></a><tt class="py-lineno">188</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_force_secure_cookies-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_force_secure_cookies');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_force_secure_cookies">get_force_secure_cookies</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_force_secure_cookies-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_force_secure_cookies-expanded"><a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-100" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-100', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-101" class="py-name" targets="Variable esapi.conf.settings.HttpUtilities_ForceSecureCookies=esapi.conf.settings-module.html#HttpUtilities_ForceSecureCookies,Variable esapi.test.conf.settings.HttpUtilities_ForceSecureCookies=esapi.test.conf.settings-module.html#HttpUtilities_ForceSecureCookies"><a title="esapi.conf.settings.HttpUtilities_ForceSecureCookies
esapi.test.conf.settings.HttpUtilities_ForceSecureCookies" class="py-name" href="#" onclick="return doclink('link-101', 'HttpUtilities_ForceSecureCookies', 'link-101');">HttpUtilities_ForceSecureCookies</a></tt> </tt>
</div><a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_upload_directory"></a><div id="DefaultSecurityConfiguration.get_upload_directory-def"><a name="L191"></a><tt class="py-lineno">191</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_upload_directory-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_upload_directory');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_upload_directory">get_upload_directory</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_upload_directory-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_upload_directory-expanded"><a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-102" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-102', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-103" class="py-name" targets="Variable esapi.conf.settings.HttpUtilities_UploadDir=esapi.conf.settings-module.html#HttpUtilities_UploadDir,Variable esapi.test.conf.settings.HttpUtilities_UploadDir=esapi.test.conf.settings-module.html#HttpUtilities_UploadDir"><a title="esapi.conf.settings.HttpUtilities_UploadDir
esapi.test.conf.settings.HttpUtilities_UploadDir" class="py-name" href="#" onclick="return doclink('link-103', 'HttpUtilities_UploadDir', 'link-103');">HttpUtilities_UploadDir</a></tt> </tt>
</div><a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_allowed_file_upload_size"></a><div id="DefaultSecurityConfiguration.get_allowed_file_upload_size-def"><a name="L194"></a><tt class="py-lineno">194</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_allowed_file_upload_size-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_allowed_file_upload_size');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_allowed_file_upload_size">get_allowed_file_upload_size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_allowed_file_upload_size-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_allowed_file_upload_size-expanded"><a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-104" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-104', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-105" class="py-name" targets="Variable esapi.conf.settings.HttpUtilities_MaxUploadFileBytes=esapi.conf.settings-module.html#HttpUtilities_MaxUploadFileBytes,Variable esapi.test.conf.settings.HttpUtilities_MaxUploadFileBytes=esapi.test.conf.settings-module.html#HttpUtilities_MaxUploadFileBytes"><a title="esapi.conf.settings.HttpUtilities_MaxUploadFileBytes
esapi.test.conf.settings.HttpUtilities_MaxUploadFileBytes" class="py-name" href="#" onclick="return doclink('link-105', 'HttpUtilities_MaxUploadFileBytes', 'link-105');">HttpUtilities_MaxUploadFileBytes</a></tt> </tt>
</div><a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_response_content_type"></a><div id="DefaultSecurityConfiguration.get_response_content_type-def"><a name="L197"></a><tt class="py-lineno">197</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_response_content_type-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_response_content_type');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_response_content_type">get_response_content_type</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_response_content_type-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_response_content_type-expanded"><a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-106" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-106', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-107" class="py-name" targets="Variable esapi.conf.settings.HttpUtilities_ResponseContentType=esapi.conf.settings-module.html#HttpUtilities_ResponseContentType,Variable esapi.test.conf.settings.HttpUtilities_ResponseContentType=esapi.test.conf.settings-module.html#HttpUtilities_ResponseContentType"><a title="esapi.conf.settings.HttpUtilities_ResponseContentType
esapi.test.conf.settings.HttpUtilities_ResponseContentType" class="py-name" href="#" onclick="return doclink('link-107', 'HttpUtilities_ResponseContentType', 'link-107');">HttpUtilities_ResponseContentType</a></tt> </tt>
</div><a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">         </tt>
<a name="DefaultSecurityConfiguration.get_allowed_file_extensions"></a><div id="DefaultSecurityConfiguration.get_allowed_file_extensions-def"><a name="L200"></a><tt class="py-lineno">200</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_allowed_file_extensions-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_allowed_file_extensions');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_allowed_file_extensions">get_allowed_file_extensions</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_allowed_file_extensions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_allowed_file_extensions-expanded"><a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-108" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-108', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-109" class="py-name" targets="Variable esapi.conf.settings.HttpUtilities_AllowedUploadExtensions=esapi.conf.settings-module.html#HttpUtilities_AllowedUploadExtensions,Variable esapi.test.conf.settings.HttpUtilities_AllowedUploadExtensions=esapi.test.conf.settings-module.html#HttpUtilities_AllowedUploadExtensions"><a title="esapi.conf.settings.HttpUtilities_AllowedUploadExtensions
esapi.test.conf.settings.HttpUtilities_AllowedUploadExtensions" class="py-name" href="#" onclick="return doclink('link-109', 'HttpUtilities_AllowedUploadExtensions', 'link-109');">HttpUtilities_AllowedUploadExtensions</a></tt> </tt>
</div><a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">         </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line">    <tt class="py-comment"># Intrusion Detector</tt> </tt>
<a name="DefaultSecurityConfiguration.get_quota"></a><div id="DefaultSecurityConfiguration.get_quota-def"><a name="L204"></a><tt class="py-lineno">204</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_quota-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_quota');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_quota">get_quota</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event_name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_quota-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_quota-expanded"><a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line">        <tt id="link-110" class="py-name" targets="Variable esapi.security_configuration.SecurityConfiguration.Threshold.count=esapi.security_configuration.SecurityConfiguration.Threshold-class.html#count,Variable esapi.test.http.mock_session.MockSession.count=esapi.test.http.mock_session.MockSession-class.html#count"><a title="esapi.security_configuration.SecurityConfiguration.Threshold.count
esapi.test.http.mock_session.MockSession.count" class="py-name" href="#" onclick="return doclink('link-110', 'count', 'link-110');">count</a></tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt id="link-111" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-111', 'settings', 'link-13');">settings</a></tt><tt class="py-op">,</tt> <tt class="py-string">"IntrusionDetector_"</tt> <tt class="py-op">+</tt> <tt class="py-name">event_name</tt> <tt class="py-op">+</tt> <tt class="py-string">"_count"</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line">        <tt id="link-112" class="py-name" targets="Variable esapi.security_configuration.SecurityConfiguration.Threshold.interval=esapi.security_configuration.SecurityConfiguration.Threshold-class.html#interval"><a title="esapi.security_configuration.SecurityConfiguration.Threshold.interval" class="py-name" href="#" onclick="return doclink('link-112', 'interval', 'link-112');">interval</a></tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt id="link-113" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-113', 'settings', 'link-13');">settings</a></tt><tt class="py-op">,</tt> <tt class="py-string">"IntrusionDetector_"</tt> <tt class="py-op">+</tt> <tt class="py-name">event_name</tt> <tt class="py-op">+</tt> <tt class="py-string">"_interval"</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line">        <tt id="link-114" class="py-name" targets="Variable esapi.security_configuration.SecurityConfiguration.Threshold.actions=esapi.security_configuration.SecurityConfiguration.Threshold-class.html#actions"><a title="esapi.security_configuration.SecurityConfiguration.Threshold.actions" class="py-name" href="#" onclick="return doclink('link-114', 'actions', 'link-114');">actions</a></tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt id="link-115" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-115', 'settings', 'link-13');">settings</a></tt><tt class="py-op">,</tt> <tt class="py-string">"IntrusionDetector_"</tt> <tt class="py-op">+</tt> <tt class="py-name">event_name</tt> <tt class="py-op">+</tt> <tt class="py-string">"_actions"</tt><tt class="py-op">,</tt> <tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-116" class="py-name"><a title="esapi.security_configuration.SecurityConfiguration.Threshold.count
esapi.test.http.mock_session.MockSession.count" class="py-name" href="#" onclick="return doclink('link-116', 'count', 'link-110');">count</a></tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt> <tt class="py-keyword">and</tt> <tt id="link-117" class="py-name"><a title="esapi.security_configuration.SecurityConfiguration.Threshold.interval" class="py-name" href="#" onclick="return doclink('link-117', 'interval', 'link-112');">interval</a></tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt> <tt class="py-keyword">and</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-118" class="py-name"><a title="esapi.security_configuration.SecurityConfiguration.Threshold.actions" class="py-name" href="#" onclick="return doclink('link-118', 'actions', 'link-114');">actions</a></tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-119" class="py-name"><a title="esapi.security_configuration.SecurityConfiguration" class="py-name" href="#" onclick="return doclink('link-119', 'SecurityConfiguration', 'link-5');">SecurityConfiguration</a></tt><tt class="py-op">.</tt><tt id="link-120" class="py-name" targets="Class esapi.security_configuration.SecurityConfiguration.Threshold=esapi.security_configuration.SecurityConfiguration.Threshold-class.html"><a title="esapi.security_configuration.SecurityConfiguration.Threshold" class="py-name" href="#" onclick="return doclink('link-120', 'Threshold', 'link-120');">Threshold</a></tt><tt class="py-op">(</tt> <tt class="py-name">event_name</tt><tt class="py-op">,</tt> <tt id="link-121" class="py-name"><a title="esapi.security_configuration.SecurityConfiguration.Threshold.count
esapi.test.http.mock_session.MockSession.count" class="py-name" href="#" onclick="return doclink('link-121', 'count', 'link-110');">count</a></tt><tt class="py-op">,</tt> <tt id="link-122" class="py-name"><a title="esapi.security_configuration.SecurityConfiguration.Threshold.interval" class="py-name" href="#" onclick="return doclink('link-122', 'interval', 'link-112');">interval</a></tt><tt class="py-op">,</tt> <tt id="link-123" class="py-name"><a title="esapi.security_configuration.SecurityConfiguration.Threshold.actions" class="py-name" href="#" onclick="return doclink('link-123', 'actions', 'link-114');">actions</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line">             </tt>
<a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line">    <tt class="py-comment"># Logging</tt> </tt>
<a name="DefaultSecurityConfiguration.get_log_encoding_required"></a><div id="DefaultSecurityConfiguration.get_log_encoding_required-def"><a name="L212"></a><tt class="py-lineno">212</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_log_encoding_required-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_log_encoding_required');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_log_encoding_required">get_log_encoding_required</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_log_encoding_required-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_log_encoding_required-expanded"><a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-124" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-124', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-125" class="py-name" targets="Variable esapi.conf.settings.Logger_LogEncodingRequired=esapi.conf.settings-module.html#Logger_LogEncodingRequired,Variable esapi.test.conf.settings.Logger_LogEncodingRequired=esapi.test.conf.settings-module.html#Logger_LogEncodingRequired"><a title="esapi.conf.settings.Logger_LogEncodingRequired
esapi.test.conf.settings.Logger_LogEncodingRequired" class="py-name" href="#" onclick="return doclink('link-125', 'Logger_LogEncodingRequired', 'link-125');">Logger_LogEncodingRequired</a></tt> </tt>
</div><a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line"> </tt>
<a name="DefaultSecurityConfiguration.get_log_filename"></a><div id="DefaultSecurityConfiguration.get_log_filename-def"><a name="L215"></a><tt class="py-lineno">215</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_log_filename-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_log_filename');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_log_filename">get_log_filename</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_log_filename-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_log_filename-expanded"><a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-126" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-126', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-127" class="py-name" targets="Variable esapi.conf.settings.Logger_LogFileName=esapi.conf.settings-module.html#Logger_LogFileName,Variable esapi.test.conf.settings.Logger_LogFileName=esapi.test.conf.settings-module.html#Logger_LogFileName"><a title="esapi.conf.settings.Logger_LogFileName
esapi.test.conf.settings.Logger_LogFileName" class="py-name" href="#" onclick="return doclink('link-127', 'Logger_LogFileName', 'link-127');">Logger_LogFileName</a></tt> </tt>
</div><a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">     </tt>
<a name="DefaultSecurityConfiguration.get_max_log_filesize"></a><div id="DefaultSecurityConfiguration.get_max_log_filesize-def"><a name="L218"></a><tt class="py-lineno">218</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_max_log_filesize-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_max_log_filesize');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_max_log_filesize">get_max_log_filesize</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_max_log_filesize-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_max_log_filesize-expanded"><a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-128" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-128', 'settings', 'link-13');">settings</a></tt><tt class="py-op">.</tt><tt id="link-129" class="py-name" targets="Variable esapi.conf.settings.Logger_MaxLogFileSize=esapi.conf.settings-module.html#Logger_MaxLogFileSize,Variable esapi.test.conf.settings.Logger_MaxLogFileSize=esapi.test.conf.settings-module.html#Logger_MaxLogFileSize"><a title="esapi.conf.settings.Logger_MaxLogFileSize
esapi.test.conf.settings.Logger_MaxLogFileSize" class="py-name" href="#" onclick="return doclink('link-129', 'Logger_MaxLogFileSize', 'link-129');">Logger_MaxLogFileSize</a></tt> </tt>
</div><a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">         </tt>
<a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line">    <tt class="py-comment"># Validation</tt> </tt>
<a name="DefaultSecurityConfiguration.get_validation_pattern"></a><div id="DefaultSecurityConfiguration.get_validation_pattern-def"><a name="L222"></a><tt class="py-lineno">222</tt> <a class="py-toggle" href="#" id="DefaultSecurityConfiguration.get_validation_pattern-toggle" onclick="return toggle('DefaultSecurityConfiguration.get_validation_pattern');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_validation_pattern">get_validation_pattern</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DefaultSecurityConfiguration.get_validation_pattern-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DefaultSecurityConfiguration.get_validation_pattern-expanded"><a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line">        <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt id="link-130" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-130', 'settings', 'link-13');">settings</a></tt><tt class="py-op">,</tt> <tt class="py-string">"Validator_"</tt> <tt class="py-op">+</tt> <tt class="py-name">key</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
<a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">value</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt>  </tt>
<a name="L225"></a><tt class="py-lineno">225</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-131" class="py-name"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration.log_special" class="py-name" href="#" onclick="return doclink('link-131', 'log_special', 'link-21');">log_special</a></tt><tt class="py-op">(</tt><tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">"Trying to get validation pattern Validator_%(key)s failed because it doesn't exist"</tt><tt class="py-op">)</tt> <tt class="py-op">%</tt> </tt>
<a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line">            <tt class="py-op">{</tt><tt class="py-string">'key'</tt> <tt class="py-op">:</tt> <tt class="py-name">key</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L227"></a><tt class="py-lineno">227</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L228"></a><tt class="py-lineno">228</tt>  <tt class="py-line">             </tt>
<a name="L229"></a><tt class="py-lineno">229</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">compile</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
<a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">,</tt> <tt class="py-name">extra</tt><tt class="py-op">:</tt> </tt>
<a name="L232"></a><tt class="py-lineno">232</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-132" class="py-name"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration.log_special" class="py-name" href="#" onclick="return doclink('link-132', 'log_special', 'link-21');">log_special</a></tt><tt class="py-op">(</tt><tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">"SecurityConfiguration for Validator_%(key)s is not a valid regex in settings. Returning None."</tt><tt class="py-op">)</tt> <tt class="py-op">%</tt>  </tt>
<a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line">                <tt class="py-op">{</tt><tt class="py-string">'key'</tt> <tt class="py-op">:</tt> <tt class="py-name">key</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L234"></a><tt class="py-lineno">234</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div></div><a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="esapi-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Nov  8 16:04:24 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
